home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / mac / Shout3Ddemo / Shout3d_runtime / codebase / models / segmentedAnimationTest_old.wrl < prev    next >
Text File  |  2000-11-07  |  4KB  |  140 lines

  1. #VRML V2.0 utf8
  2.  
  3. #Cosmo Worlds V2.0
  4.  
  5. WorldInfo {
  6.   info    "Test for breaking animation into 3 parts"
  7. }
  8. DEF TIMER TimeSensor {
  9.       loop true
  10. }
  11. DEF FRACTION_ADJUSTER ScalarInterpolator {    key      [ 0, 1.0]    keyValue [ 0, 0.3333 ]}DEF _0 Transform {
  12.   children    [
  13.     Shape {
  14.       appearance    Appearance {
  15.     material    Material {
  16.     }
  17.  
  18.       }
  19.  
  20.       geometry    DEF _1 IndexedFaceSet {
  21.     coord    Coordinate {
  22.       point    [ -1 1 1,
  23.             -1 -1 1,
  24.             1 1 1,
  25.             1 -1 1,
  26.             1 1 -1,
  27.             1 -1 -1,
  28.             -1 1 -1,
  29.             -1 -1 -1 ]
  30.     }
  31.  
  32.     coordIndex    [ 0, 1, 3, 2, -1, 4, 5, 7,
  33.           6, -1, 6, 7, 1, 0, -1, 2,
  34.           3, 5, 4, -1, 6, 0, 2, 4,
  35.           -1, 1, 7, 5, 3, -1 ]
  36.     creaseAngle    0.5
  37.     normalIndex    [  ]
  38.       }
  39.  
  40.     }
  41.     DEF UnnamedAnimation0 Group {
  42.       children    [
  43.     DEF POS_INTERP_1 PositionInterpolator {
  44.       key    [ 0, 0.0333333, 0.0666667, 0.1,
  45.             0.133333, 0.166667, 0.2, 0.233333,
  46.             0.266667, 0.3, 0.333333, 0.366667,
  47.             0.4, 0.433333, 0.466667, 0.5,
  48.             0.533333, 0.566667, 0.6, 0.633333,
  49.             0.666667, 0.7, 0.733333, 0.766667,
  50.             0.8, 0.833333, 0.866667, 0.9,
  51.             0.933334, 0.966667, 1 ]
  52.       keyValue    [ 0 1 0,
  53.             -0.583508 0.978826 -0.0296143,
  54.             -1.2548 0.936479 -0.0620831,
  55.             -1.8822 0.904719 -0.0931246,
  56.             -2.33403 0.915305 -0.118457,
  57.             -2.47863 1 -0.1338,
  58.             -2.36846 1.1774 -0.141025,
  59.             -2.15702 1.42784 -0.145218,
  60.             -1.86421 1.72568 -0.146912,
  61.             -1.5099 2.04531 -0.146645,
  62.             -1.11399 2.36108 -0.14495,
  63.             -0.696346 2.64737 -0.142363,
  64.             -0.276867 2.87854 -0.13942,
  65.             0.124568 3.02896 -0.136654,
  66.             0.488075 3.073 -0.134603,
  67.             0.793769 2.98503 -0.1338,
  68.             1.06652 2.55089 -0.135039,
  69.             1.32969 1.71059 -0.137764,
  70.             1.56116 0.669719 -0.14049,
  71.             1.73878 -0.366121 -0.141729,
  72.             1.84041 -1.19133 -0.139994,
  73.             1.84393 -1.60031 -0.1338,
  74.             1.75912 -1.64423 -0.123632,
  75.             1.61802 -1.53213 -0.111261,
  76.             1.4319 -1.29522 -0.0971288,
  77.             1.21201 -0.964688 -0.0816748,
  78.             0.96961 -0.571749 -0.0653398,
  79.             0.715951 -0.147607 -0.0485644,
  80.             0.462291 0.276536 -0.0317889,
  81.             0.219888 0.669473 -0.0154539,
  82.             0 1 0 ]
  83.     }
  84.     DEF ROT_INTERP_1 OrientationInterpolator {
  85.       key    [ 0, 0.0333333, 0.0666667, 0.1,
  86.             0.133333, 0.166667, 0.2, 0.233333,
  87.             0.266667, 0.3, 0.333333, 0.366667,
  88.             0.4, 0.433333, 0.466667, 0.5,
  89.             0.533333, 0.566667, 0.6, 0.633333,
  90.             0.666667, 0.7, 0.733333, 0.766667,
  91.             0.8, 0.833333, 0.866667, 0.9,
  92.             0.933334, 0.966667, 1 ]
  93.       keyValue    [ 0 0 1  0,
  94.             0 0 -1  0.0367937,
  95.             0 0 -1  0.0886569,
  96.             0 0 -1  0.152769,
  97.             0 0 -1  0.226303,
  98.             0 0 -1  0.306436,
  99.             0 0 -1  0.390345,
  100.             0 0 -1  0.475205,
  101.             0 0 -1  0.558194,
  102.             0 0 -1  0.636488,
  103.             0 0 -1  0.707262,
  104.             0 0 -1  0.767694,
  105.             0 0 -1  0.814959,
  106.             0 0 -1  0.846234,
  107.             0 0 -1  0.858695,
  108.             0 0 -1  0.849519,
  109.             0 0 -1  0.713551,
  110.             0 0 -1  0.451372,
  111.             0 0 -1  0.124552,
  112.             0 0 1  0.205344,
  113.             0 0 1  0.476748,
  114.             0 0 1  0.628092,
  115.             0 0 1  0.647289,
  116.             0 0 1  0.617989,
  117.             0 0 1  0.551443,
  118.             0 0 1  0.4589,
  119.             0 0 1  0.351612,
  120.             0 0 1  0.240827,
  121.             0 0 1  0.137797,
  122.             0 0 1  0.0537702,
  123.             0 0 1  0 ]
  124.     }
  125.       ]
  126.     }
  127.   ]
  128.   translation    0 1 0
  129.   rotation    0 0 1  0
  130. }
  131. Viewpoint {
  132.   position    -3.23406 4.56847 6.14924
  133.   orientation    -0.633779 -0.749128 -0.192698  0.696482
  134.   fieldOfView    0.785398
  135. }
  136.  
  137. ROUTE TIMER.fraction TO FRACTION_ADJUSTER.fractionROUTE FRACTION_ADJUSTER.value TO POS_INTERP_1.fractionROUTE FRACTION_ADJUSTER.value TO ROT_INTERP_1.fraction
  138. ROUTE POS_INTERP_1.value TO _0.translation
  139. ROUTE ROT_INTERP_1.value TO _0.rotation
  140.